using HardStyle.SimpleEventBus;
using TestEventBus.Events;

var builder = WebApplication.CreateBuilder(args);
builder.Services.AddSimpleEventBus(typeof(MessageEvent));

var app = builder.Build();
var bus = app.Services.GetRequiredService<ISimpleEventBus>();
bus.Publish(new MessageEvent() { Message = "666" }, default);
app.Run();